#ifndef __cmdinneruserlogin_h__
#define __cmdinneruserlogin_h__

#include "../maindef.h"
#include "CTKeyValue.h"
#include "CTAsyncCmd.h"
#include "commclass.h"
#include "MsgLogin.pb.h"
#include "MsgUserInfo.pb.h"

class CMainCtrl;
class CCmdInnerUserLogin : public CTLib::CTAsyncCmd
{
public:
    CCmdInnerUserLogin() : _bIsTencentLogin(true)
    {
    }

    virtual int Do(void* pData);
    virtual int AnsClients(int iRet);
    virtual int LogicDo(int iRet);

    CMainCtrl* pstMainCtrl;
    PBMsgHead  stMsgHead;
    CEnpNetHead stEnpHead;

    MsgAnsLogin stAns;

    bool _bIsCheckLogin; //是否已经检查登录
    bool _bIsTencentLogin; //是否从平台登录
    int _iZoneID;
    unsigned int _uiGID;
    CTSizeString<USER_TOKEN_LEN> _szUserToken;
    CTLib::CTKeyValue  _stTencentApiKeyValue;  //腾讯平台通用参数
};

#endif // __cmdinneruserlogin_h__

